import React, { useContext } from 'react';
import { Row, Col } from 'antd';
import { ExpertsUpdateContext } from '../common/ExpertsContext';

const UpdateExpertsFormOtherInfoView: React.FC = () => {
  const { prefixCls, expertsInfo } = useContext(ExpertsUpdateContext);

  const { expertFlag } = expertsInfo;

  return (
    <Row className={`${prefixCls}info-view`}>
      <Col span={12}>
        <span className={'label'}>内外部专家：</span>
        <span>{expertFlag == 1 ? '外部专家' : '内部专家'}</span>
      </Col>
    </Row>
  );
};

export default UpdateExpertsFormOtherInfoView;

{
  /* <Col span={12}>
        <span className={'label'}>政治面貌：</span>
        {DictionarySpan(politicalTypeName) ?? '--'}
      </Col> */
}
{
  /* <Col span={12}>
        <span className={'label'}>民族：</span>
        <span>{fullName ?? '--'}</span>
      </Col> */
}
{
  /* <Col span={12}>
        <span className={'label'}>生日：</span>
        <span>{birthday ?? '--'}</span>
      </Col>
      <Col span={12}>
        <span className={'label'}>对应任务：</span>
        <span>{taskType ?? '--'}</span>
      </Col> */
}

{
  /* <Col span={24}>
        <span className={'label'}>简介：</span>
        <Tooltip title={profileInfo}>
          <span>{profileInfo ?? '--'}</span>
        </Tooltip>
      </Col> */
}
